﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="PeachLite.Admin.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>管理员登录</title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <link type="text/css" rel="Stylesheet" href="resx/global.css" />
    <link type="text/css" rel="Stylesheet" href="resx/login.css"/>
    <script type="text/javascript" src="js/jQuery.js"></script>
    <script type="text/javascript" src="js/com.js"></script>
    <script type="text/javascript" src="js/md5.js"></script>
    <script type="text/javascript">
        function login() {
            var name = $("#tbname").val();
            var pwd = $("#tbpwd").val();
            if(name == "" || pwd == "") {
                alert("用户名和密码不能为空！");
                return;
            }
            fx({ n: name, p: hex_md5(pwd), c: AJAXCODE.Login, r: Math.random() });
        }

        $(function () {
            if (window != top) {
                top.location.href = location.href;
            }
        });
    </script>
</head>
<body class="md">
    <form id="form1" runat="server">
        <div class="top">
            <div class="tpc clearfix">
                <a href="index.aspx" class="logo">
                    <span class="n">PeachLite管理后台</span>
                </a>
            </div>
        </div>
        <div class="main">
            <div class="m">
                <div class="box">
                    <h3>管理员登录</h3>
                    <ul class="fm login clearfix">
                        <li>
                            <input class="txt" type="text" id="tbname" placeholder="用户名" />
                        </li>
                        <li>
                            <input class="txt" type="password" id="tbpwd" placeholder="密码" />
                        </li>
                        <li>
                            <input class="btn" type="button" value="登录" onclick="login();"/>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="btm">
            <div class="copyright">Copyright © 2014 PeachSystem Co.,Ltd.</div>
        </div>
    </form>
</body>
</html>
